<!-- Begining of users list -->

<!--{*
/**
* @author Bimal Poudel
* @copyright since 2006, Bimal Poudel
* @package Smarty Framework
* @support http://www.odesk.com/users/~~dd91d11caed0cdce
* @contact http://www.sanjaal.com
* @company Sanjaal Corps
*/

Created on: 2012-04-08 12:50:53 506
*}-->

<div class="search-form">
<form method="post" action="users-search.php" name="users-livesearch" id="users-livesearch-form">
	<div class="search-bar">
		<input type="text" name="search_users" value="{$search_users}" id="search_users" />
		<input type="submit" name="search-button" value="Search" class="submit" />
	</div>
	<div id="livesearch-results"></div>
</form>
</div>

<div class="top-action">
	<ul class="links">
		<li class="record-list"><a href="users-list.php?random={random}">Refresh</a></li>
		<li class="record-add"><a href="users-add.php">Add Users</a></li>
	</ul>
</div>

{if $userss|count}

<div class="form-wrap">
<form id="users-list-form" name="users-list-form" method="post" action="users-blockaction.php">
<table class="data" id="data-table">

<!--{* <caption>List of Users</caption> *}-->

<thead>
	<tr class="thead">
	  <th><input type="checkbox" id="users-checkall" name="checkallentities" value="checkallentities" tabindex="0" /></th>
		<th class="th-sn">S.N.</th>
		<th>?</th>
		<th>Details</th>

		<!--{* Column Headers *}-->
		<th><a href="?sort=full_name">Full Name</a></th>
		<th><a href="?sort=user_name">Name</a></th>

		<th class="th-menus">Pokes</th>
		<th class="th-menus">Poked on </th>
		<th class="th-menus">?</th>
	</tr>
</thead>

<tbody>
{section name='l' loop=$userss}
	<tr class="{cycle values='A,B'}">
	  <td><input type="checkbox" name="users[]" value="{$userss[l].user_id}" /></td>
		<td class="r">{$smarty.section.l.index_next+$pagination->begining_entry()}.</td>
		<td><a href="users-flag.php?flag=is_approved&amp;id={$userss[l].user_id}&amp;code={$userss[l].code}">{$userss[l].is_approved|yn}</a></td>
		<td><a href="users-details.php?id={$userss[l].user_id}&amp;code={$userss[l].code}">Details</a></td>

		<!--{* Column Data *}-->
		<td>{$userss[l].full_name}</td>
		<td>{$userss[l].user_name}</td>
		
		<td class="actions nowrap"><a href="pokes-list.php?id={$userss[l].user_id}">Pokes</a></td>
		<td class="actions nowrap"><a href="pokes-list.php?id={$userss[l].user_id}">{$userss[l].poked_on|ymd:41}</a></td>
		<!--{* Management Icons, without being wrapped anymore *}-->
		<td class="actions nowrap"><ul>
			<li class="edit"><a href="users-edit.php?id={$userss[l].user_id}&amp;code={$userss[l].code}" title="Edit">Edit</a></li>
			<!--{*
			<li class="detail"><a href="users-details.php?id={$userss[l].user_id}&amp;code={$userss[l].code}" title="Details">Details</a></li>
			<li class="move-up"><a href="users-sort.php?id={$userss[l].user_id}&amp;code={$userss[l].code}&amp;direction=up" title="Move Up">Move Up</a></li>
			<li class="move-down"><a href="users-sort.php?id={$userss[l].user_id}&amp;code={$userss[l].code}&amp;direction=down" title="Move Down">Move Down</a></li>
			<li class="delete"><a href="users-delete.php?id={$userss[l].user_id}&amp;code={$userss[l].code}" title="Delete" class="delete">Delete</a></li>
			*}-->
		</ul></td>
	</tr>
{sectionelse}
	<tr class="error">
		<td>-</td>
		<td>-</td>
		<td>-</td>
		
		<!--{* Empty FOOTER Cells *}-->
		<td>-</td>
		<td>-</td>

		<td>-</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>-</td>
	</tr>
{/section}
</tbody>
</table>
<div class="block-actions">
<!--{*
	With selected records, <input type="hidden" name="action" value="nothing" />
	<select name="actions" id="actions">
		<option value="">-- Choose --</option>
		<option value="delete">Delete</option>
		<option value="disable">Disable</option>
		<option value="enable">Enable</option>
		<option value="prune">Prune</option>
		<option value="update">Update</option>
		<option value="nothing" selected="selected">Do Nothing</option>
	</select>
	<input type="submit" name="submit-button" id="submit-button" value="Perform!" />
*}-->
</div>
</form>
</div>

<!-- paginator -->
{if $pagination->has_pages()}
<div class="paginator">
	<span class="introduction">Jump to page: </span>
	{paginate separator=' ' ulli=false source=$pagination}
</div>
{/if}


<!-- Javascript Handlers, Ajax, and Validators -->
{js src='ajax.js'}
{js src='validators/users/list.js' validator=true}

{else}
	<div class="nodata">You do not have any records here.</div>
{/if}

<!-- End of users List -->